class GisSocketDetail {
  String floorNo;
  double lat;
  double lng;
  String sn;

  // 下面的是附加的
  int type;
  int deptId;
  int jobId;
  String name;
  String icon;
  String iconAlarm;
  bool isAlarm;
  bool isShow; //是否显示 如果别过滤了 就不显示了
  bool isRealTrack;

  GisSocketDetail(
      {this.floorNo,
      this.lat,
      this.lng,
      this.sn,
      this.type,
        this.deptId,
        this.jobId,
      this.name,
      this.icon,
      this.iconAlarm,
      this.isAlarm = false,
      this.isShow = true,
      this.isRealTrack = false});

  factory GisSocketDetail.fromJson(Map<String, dynamic> json) {
    return GisSocketDetail(
      floorNo: json['floorNo'],
      lat: json['lat'],
      lng: json['lng'],
      sn: json['sn'],
    );
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['floorNo'] = this.floorNo;
    data['lat'] = this.lat;
    data['lng'] = this.lng;
    data['sn'] = this.sn;
    data['type'] = this.type;
    data['deptId'] = this.deptId;
    data['jobId'] = this.jobId;
    data['name'] = this.name;
    data['icon'] = this.icon;
    data['iconAlarm'] = this.iconAlarm;
    data['isAlarm'] = this.isAlarm;
    data['isRealTrack'] = this.isRealTrack;
    data['isShow'] = this.isShow;
    return data;
  }
}
